package com.common.convert.impl;


import com.common.convert.Converter;
import com.common.convert.FormatSupport;
import com.common.convert.param.FormatParam;
import org.jodconverter.core.document.DefaultDocumentFormatRegistry;

import java.io.File;
import java.net.URL;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class URLConverter implements Converter<URL> {
    @Override
    public String convert(URL url, String outType, List<FormatParam> params) {
        return null;
    }

    @Override
    public Set<FormatSupport> supports() {
        Set<FormatSupport> supports = new HashSet<>() ;

        supports.add(new FormatSupport("url", DefaultDocumentFormatRegistry.HTML.getExtensions().get(0)));

        return supports;
    }
}
